
.page-wrap {
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -moz-justify-content: -moz-flex-start;
    -webkit-justify-content: -webkit-flex-start;
    -ms-justify-content: -ms-flex-start;
    justify-content: flex-start;
}

/* Navigation */

#nav {
    background: #0d1217;
    z-index: 10002;
    position: relative;
    width: 4em;
}

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 1em;
    left: 0;
}

    #nav ul li {
        padding: 0;
        width: 3.75em;
        text-align: Center;
        margin-bottom: 1em;
    }

        #nav ul li a {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            font-size: 1.5em;
        }

            #nav ul li a:hover {
                color: white;
            }

            #nav ul li a.active {
                color: #19B5FE;
            }

        @media screen and (max-width: 736px) {

            #nav ul li {
                width: 3.4em;
            }

        }

/* Main */

#main {
    background: #f1f1f1;
    width: 100%;
}


    /* Footer */

    #footer {
        padding: 4em 0 2em 0;
        background: #f2f2f2;
    }

        #footer .copyright {
            color: #bfbfbf;
            font-size: 0.9em;
            margin: 0 0 2em 0;
            padding: 0 1em;
            text-align: center;
        }

        @media screen and (max-width: 736px) {

            #footer {
                padding: 3em 0 1em 0;
            }

        }

/* Gallery */

    @-moz-keyframes gallery {
        100% {
            opacity: 1;		}
    }

    @-webkit-keyframes gallery {
        100% {
            opacity: 1;		}
    }

    @-ms-keyframes gallery {
        100% {
            opacity: 1;		}
    }

    @keyframes gallery {
        100% {
            opacity: 1;		}
    }

    .gallery {
        padding: 3.5em;
        position: relative;
        overflow: hidden;
        min-height: 37em;
    }

        @media screen and (max-width: 980px) {

            .gallery {
                padding: 2em;
                min-height: 20em;
            }

                .gallery header h2 {
                    margin-bottom: 1em;
                }

        }

        @media screen and (max-width: 480px) {

            .gallery {
                padding: 1em;
            }

        }

        .gallery header {
            display: -ms-flexbox;
            -ms-flex-pack: justify;
            display: -moz-flex;
            display: -webkit-flex;
            display: -ms-flex;
            display: flex;
            -moz-flex-wrap: wrap;
            -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
            -moz-justify-content: space-between;
            -webkit-justify-content: space-between;
            -ms-justify-content: space-between;
            justify-content: space-between;
        }

            .gallery header.special {
                -moz-justify-content: center;
                -webkit-justify-content: center;
                -ms-justify-content: center;
                justify-content: center;
            }

            @media screen and (max-width: 736px) {

                .gallery header {
                    display: block;
                }

            }

            @media screen and (max-width: 480px) {

                .gallery header h2 {
                    margin-bottom: .5em;
                }

            }

        .gallery footer {
            text-align: center;
            margin-top: 4em;
        }

        .gallery .content {
            display: -ms-flexbox;
            display: -moz-flex;
            display: -webkit-flex;
            display: -ms-flex;
            display: flex;
            -moz-flex-wrap: wrap;
            -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
            -moz-justify-content: -moz-flex-start;
            -webkit-justify-content: -webkit-flex-start;
            -ms-justify-content: -ms-flex-start;
            justify-content: flex-start;
        }

            .gallery .content .media {
                -moz-animation: gallery 0.75s ease-out 0.4s forwards;
                -webkit-animation: gallery 0.75s ease-out 0.4s forwards;
                -ms-animation: gallery 0.75s ease-out 0.4s forwards;
                animation: gallery 0.75s ease-out 0.4s forwards;
                margin-bottom: 0;
                overflow: hidden;
                opacity: 0;
                position: relative;
                width: 25%;
            }

                .gallery .content .media a {
                    display: block;
                }

                .gallery .content .media img {
                    -moz-transition: -moz-transform 0.2s ease-in-out;
                    -webkit-transition: -webkit-transform 0.2s ease-in-out;
                    -ms-transition: -ms-transform 0.2s ease-in-out;
                    transition: transform 0.2s ease-in-out;
                    max-width: 100%;
                    height: auto;
                    vertical-align: middle;
                }

                .gallery .content .media:hover img {
                    -moz-transform: scale(1.075);
                    -webkit-transform: scale(1.075);
                    -ms-transform: scale(1.075);
                    transform: scale(1.075);
                }

                @media screen and (max-width: 736px) {

                    .gallery .content .media {
                        width: 50%;
                    }

                }

                @media screen and (max-width: 480px) {

                    .gallery .content .media {
                        width: 100%;
                    }

                }